.\"     Title: ne_set_request_flag
.\"    Author: 
.\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/>
.\"      Date: 20 August 2008
.\"    Manual: neon API reference
.\"    Source: neon 0.28.3
.\"
.TH "NE_SET_REQUEST_FLAG" "3" "20 August 2008" "neon 0.28.3" "neon API reference"
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.SH "NAME"
ne_set_request_flag, ne_get_request_flag - set and retrieve per-request flags
.SH "SYNOPSIS"
.sp
.ft B
.nf
#include <ne_request\.h>
.fi
.ft
.HP 25
.BI "void ne_set_request_flag(ne_request\ *" "req" ", ne_request_flag\ " "flag" ", int\ " "value" ");"
.HP 24
.BI "int ne_get_request_flag(ne_request\ *" "req" ", ne_request_flag\ " "flag" ");"
.SH "DESCRIPTION"
.PP
The
\fBne_set_request_flag\fR
function enables or disables a per\-request flag\. Passing a non\-zero
\fIvalue\fR
argument enables the flag, and zero disables it\.
.PP
The following flags are defined:
.PP
\fBNE_REQFLAG_EXPECT100\fR
.RS 4
enables this flag to use the "Expect: 100\-continue" feature of HTTP/1\.1
.RE
.PP
\fBNE_REQFLAG_IDEMPOTENT\fR
.RS 4
disable this flag if the request uses a non\-idempotent method such as
POST
.RE
.SH "RETURN VALUE"
.PP
The
\fBne_get_request_flag\fR
function returns zero if a flag is disabled, less than zero if the flag is not supported, or greater than zero if the flag is enabled\.
.SH "SEE ALSO"
.PP
ne_request_create\.
.SH "AUTHOR"
.PP
\fBJoe Orton\fR <\&neon@lists.manyfish.co.uk\&>
.sp -1n
.IP "" 4
Author.
.SH "COPYRIGHT"
